package com.zy.bean.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 规则组件库
 * @author hanhuafeng
 * @TableName api_flow_rule_component
 */
@TableName(value ="api_flow_rule_component")
@Data
public class RuleComponent implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 组件编码
     */
    private String code;
    /**
     * 组件名称
     */
    @TableField(value = "cmp_id")
    private String cmpId;

    /**
     * 组件类型
     */
    @TableField(value = "cmp_type")
    private String cmpType;

    /**
     * 默认展示内容
     */
    @TableField(value = "default_text")
    private String defaultText;

    /**
     * 参数
     */
    @TableField(value = "params")
    private String params;

    /**
     * 上报类型
     * 0 自动上报 1 手动上报
     */
    private Integer reportType;

    /**
     * 逻辑删除
     * 0 未删除 1 已删除
     */
    @TableField(value = "exist")
    @TableLogic
    private Integer exist;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
